// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
// 清除默认样式
import 'reset-css'
import App from './App'
import router from './router'
// 导入axios和vue-axios
import axios from 'axios'
import VueAxios from 'vue-axios'

import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

Vue.config.productionTip = false

Vue.use(ElementUI)
Vue.use(router)
Vue.use(VueAxios, axios)

axios.defaults.withCredentials = true

/* eslint-disable no-new */
new Vue({
  el: '#app',
  // 配置路由
  router,
  render: h => h(App),
  components: { App },
  template: '<App/>'
})
